package com.tengju.user.infrastructure.persistence.mybatis.mapper.dealer.custom;

import com.tengju.user.infrastructure.persistence.mybatis.dataobject.ClubZoneRelationDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenhang
 * @Date 2021/1/13
 */
public interface ClubZoneRelationDOCustomMapper {

    Long findZoneIdByClubId(@Param("clubId") long clubId);

    ClubZoneRelationDO findByClubId(@Param("clubId") long clubId);

    void updateByClubId(@Param("clubZoneRelationDO") ClubZoneRelationDO clubZoneRelationDO);

    List<ClubZoneRelationDO> findByZoneId(@Param("zoneId") long zoneId);

    List<ClubZoneRelationDO> batchGetByClubIds(@Param("clubIds") List<Long> clubIdValues);

}
